package com.beidu.lottery.call.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.beidu.lottery.call.entity.serializer.Sensitive;
import com.beidu.lottery.call.entity.serializer.SensitiveStrategyEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 报名活动参与列表
 * </p>
 *
 * @author 北渡
 * @since 2023-08-09
 */
@Data
@Builder
@ApiModel(value = "ActivityRegListVO")
@NoArgsConstructor
@AllArgsConstructor
public class ActivityRegListVO implements Serializable {


    @ApiModelProperty(value = "报名记录ID")
    private Integer id;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "报名编号")
    private String regNumber;

    @ApiModelProperty(value = "手机号-脱敏")
    @Sensitive(strategy = SensitiveStrategyEnum.PHONE)
    private String phoneNum;

    @ApiModelProperty(value = "参与时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime participateDate;

    @ApiModelProperty(value = "消耗积分")
    private Integer deductionPoint;


}
